var user = null;
$(function(){
	//得到登录用户信息
	//定义一个data变量
	var data = null;
	//定义一个URL变量
	var url = "../user/getUser.action";
	$.ajax({
		url:url,
		data:data,
		async:false,
		success:function(msg){
			user = msg;
		}
	});
})
/**
 * 获得？后面的参数
 * @param param
 * @returns
 */
function getParameter(param)
{
 var query = window.location.search;
 var iLen = param.length;
 var iStart = query.indexOf(param);
 if (iStart == -1)
  return "";
 iStart += iLen + 1;
 var iEnd = query.indexOf("&", iStart);
 if (iEnd == -1)
  return query.substring(iStart);

 return query.substring(iStart, iEnd);
}